<?php

use yii\helpers\Html;
use yii\bootstrap\BootstrapAsset;
BootstrapAsset::register($this);
$this->title = '仔猪增长异常统计';
use backend\assets\PrintAsset;
PrintAsset::register($this);
?>


<div class="row">

    <div class="col-md-10 col-md-offset-1" style="margin-top: 70px">
        <table class="table table-hover">
            <tbody>
            <tr>
                <th>
                    业务员
                </th>
                <th>
                    仔猪编号
                </th>
                <th>
                    批次
                </th>
                <th>
                    农户
                </th>
                <th>
                    最后巡检时间
                </th>
                <th>
                    巡检周期
                </th>
            </tr>

            <?php foreach ($list as $key => $row)  {?>
                <tr>
                    <td>
                        <?= $row['business_person'] ?>
                    </td>
                    <td>
                        <?= $row['no'] ?>
                    </td>
                    <td>
                        <?= $row['batch'] ?>
                    </td>
                    <td>
                        <?= $row['liveryname'] ?></a>
                    </td>
                    <td>
                    <?= array_key_exists('createtime',$row)?$row['createtime']:'从未巡检'; ?>
                    </td>
                    <td>
                        <?= $recycle_day ?>天
                    </td>
                </tr>
            <?php } ?>
            </tbody>
        </table>
    </div>
</div>

